package com.cgsrp.cgsrp_shopping.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.cgsrp.cgsrp_user_province.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {
    /**
    * 订单id
    */
    private Long id;

    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 创建时间
    */
    private Date creatTime;
    private Date payTime;
    private Date receiveTime;

    /**
    * 状态
     * 0: 待支付
     * 1：已支付/待收货
     * 2：已取消
     * 3: 已完成
    */
    private Integer state;

    private Integer provinceId;

    private String address;

    private String phone;

    private String name;

    /**
    * 消费
    */
    private BigDecimal cost;

    private List<ShoppingCart> shoppingCarts;

}
